
#ifndef _HEX_FLAOT_H
#define _HEX_FLOAT_H

#include <osa.h>

#include "osa_pack_struct_b.h"
union _hex_float_t
{
    float      val;
    uint8_t    hex[4];
} PACK_STRUCT_STRUCT;
#include "osa_pack_struct_e.h"
typedef union _hex_float_t hex_float_t;


float be_hex_to_float(uint8_t *hex);
float le_hex_to_float(uint8_t *hex);

int8_t float_to_be_hex(float val, uint8_t *out_hex);
int8_t float_to_le_hex(float val, uint8_t *out_hex);


#endif /* _HEX_FLOAT_H */
